State Flow Modeling Battery Level With Switch Control